<?php
class CaptchaController extends AppController {
	var $name = 'Captcha';
	var $helpers = array();
	var $components = array('Captcha', 'Session');
	var $uses = array();

	function beforeFilter() {
	}

	function securimage(){ 
		Configure::write('debug', 0);
		$this->autoLayout = false; //a blank layout 

		//override variables set in the component - look in component for full list 
		$this->captcha->image_height = 25; 
		$this->captcha->image_width = 150; 
		$this->captcha->image_bg_color = '#ffffff'; 
		$this->captcha->line_color = '#cccccc'; 
		$this->captcha->arc_line_colors = '#999999,#cccccc'; 
		$this->captcha->code_length = 5; 
		$this->captcha->font_size = 15;
		$this->captcha->line_distance = 20; 
		$this->captcha->text_color = '#000000';
		$this->captcha->draw_angled_lines = false;
		$this->captcha->text_maximum_distance = 25; 
		$this->captcha->text_minimum_distance = 30;
		$this->captcha->arc_linethrough = false;
		
		$this->set('captcha_data', $this->captcha->show()); //dynamically creates an image 
	}
}